const router = require('koa-router')(),
  crawlerController = require('../controllers/Crawler'),
  loginCheck = require('../middlewares/loginCheck');

router.prefix('/crawler');

router.get('/crawl_slider_data', loginCheck, crawlerController.crawlSliderData);
router.get('/crawl_agency_info', loginCheck, crawlerController.crawlAgencyInfo);
router.get(
  '/crawl_recom_course',
  loginCheck,
  crawlerController.crawlRecomCourse
);
router.get('/crawl_collection', loginCheck, crawlerController.crawlCollection);
router.get('/crawl_teacher', loginCheck, crawlerController.crawlTeacher);
router.get('/crawl_student', loginCheck, crawlerController.crawlStudent);
router.get('/crawl_course_tab', loginCheck, crawlerController.crawlCourseTab);
router.get('/crawl_course_data', loginCheck, crawlerController.crawlCourseData);
router.get('/crawl_aboutus', loginCheck, crawlerController.crawlAboutus);

// router.get('/crawl_slider_data', crawlerController.crawlSliderData);
// router.get('/crawl_agency_info', crawlerController.crawlAgencyInfo);
// router.get('/crawl_recom_course', crawlerController.crawlRecomCourse);
// router.get('/crawl_collection', crawlerController.crawlCollection);
// router.get('/crawl_teacher', crawlerController.crawlTeacher);
// router.get('/crawl_student', crawlerController.crawlStudent);
// router.get('/crawl_course_tab', crawlerController.crawlCourseTab);
// router.get('/crawl_course_data', crawlerController.crawlCourseData);
// router.get('/crawl_aboutus', crawlerController.crawlAboutus);

module.exports = router;
